// 餐厅类
function Restaurant(res){
    this.money = res.money
    this.seatNum = res.seatNum
    this.staff = res.staff
}
// 招聘员工
Restaurant.prototype.hire = function(staff){
    this.staff.push(staff)
}
// 解雇员工
Restaurant.prototype.fire = function(staff){
    for(let i=0;i<this.staff.length;i++){
        if(staff[i].name == staff.name){
            this.staff.splice(i,1)
        }
    }
}
// 职员类
function Staff(name,salary){
    this.id = 0;
    this.name = name || ''
    this.salary = salary || 1000
}
// 完成一次工作
Staff.prototype.doAJob = function(){

}
// 菜品类
function Dishes(name,cost,price,time){
    this.name = name
    this.cost = cost
    this.price = price
    this.time = time
}